//
//  HomeHelpViewController.m
//  OCUI
//
//  Created by login on 15-8-12.
//
//

#import "HomeHelpViewController.h"
#import "UppayWindow.h"
#import "HelpViewController.h"
@interface HomeHelpViewController ()
{
    UppayWindow *uoo;
}
@end

@implementation HomeHelpViewController

- (instancetype)init
{
    self = [super init];
    if (self) {
        
        uoo = [[UppayWindow alloc]initWithFrame:self.view.frame];
        HelpViewController *help = [[HelpViewController alloc]init];
        uoo.rootViewController = help;
        uoo.alpha = 0;
        [uoo show];
        
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(50, 100, 100, 30)];
    [button setBackgroundColor:[UIColor redColor]];
    [button addTarget:self action:@selector(changeView) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    
}

- (void)changeView
{
[UIView animateWithDuration:0.5 animations:^{
    uoo.alpha = 1;
}];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
